package com.gagakuai.demo.refrence;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/*
 * @program: settement
 * @description:
 * @author: houhong
 * @create: 2022-11-12 19:50
 */
@Component
public class ServiceA {
    private ServiceB serviceB;

    public void m1() {
        System.out.println("Service1 m1");
    }

    @Autowired
    public void setServiceB(ServiceB serviceB) {
        this.serviceB = serviceB;
    }
}